#!/bin/bash
# Zaitan Module - Autopackage Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Aplicativos'
RMOD_NAME='Autopackage'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.2.4'
RMOD_DESCRIPTION='Installs Autopackage'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Autopackage

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall


apt-get update


cd /usr/share/zaitan
wget -c http://packzaitan.googlecode.com/svn/trunk/packages/autopackage-devel_1.2.4-3_i386.deb
wget -c http://packzaitan.googlecode.com/svn/trunk/packages/autopackage_1.2.4-2_i386.deb


## Docs
wget -c http://ftp.sunsite.dk/projects/autopackage/1.2.4/autopackage-docs.tar.bz2

dpkg -i autopackage_1.2.4-2_i386.deb
dpkg -i autopackage-devel_1.2.4-3_i386.deb
apt-get -f install





echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0
